package models

import "time"

type SalesStatus struct {
	StatusID   int    `db:"status_id" json:"statusID"`
	StatusName string `db:"status_name" json:"statusName"`
}

type Sales struct {
	OrderID            int64     `json:"orderID,string" db:"order_id"`
	StatusID           int       `json:"statusID" db:"status_id"`
	CreateUserID       int64     `json:"createUserID,string" db:"create_user_id"`
	CreateUserName     string    `json:"createUserName" db:"create_user_name"`
	ApproveUserID      int64     `json:"approveUserID,string" db:"approve_user_id"`
	ApproveUserName    string    `json:"approveUserName" db:"approve_user_name"`
	ExecUserID         int64     `json:"execUserID,string" db:"exec_user_id"`
	ExecUserName       string    `json:"execUserName" db:"exec_user_name"`
	SettlementUserID   int64     `json:"settlementUserID,string" db:"settlement_user_id"`
	SettlementUserName string    `json:"settlementUserName" db:"settlement_user_name"`
	CreateTime         time.Time `json:"createTime" db:"create_time"`
	UpdateTime         time.Time `json:"updateTime" db:"update_time"`
	SalesStatus        `json:"salesStatus"`
}
